<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id}">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Group')}:</label>
        <div class="col-xs-12 col-sm-4" disabled >
            {$groupList}
        </div>
    </div>



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Merchant_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-merchant_id" class="form-control selectpicker" name="row[merchant_id]">
                {foreach name="merchantList" item="vo"}
                <option value="{$vo.id}" {in name="$vo.id" value="$row.merchant_id"}selected{/in}>{$vo.username} </option>
                {/foreach}
            </select>
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Merchant_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-merchant_id1"  data-source="user/user/merchant" data-field="username" class="form-control selectpage" name="row[merchant_id]" type="text" value="{$row.merchant_id|htmlentities}">-->
<!--&lt;!&ndash;            <input id="c-merchant_id" data-rule="required" data-source="auth/admin/index" data-field="username" class="form-control selectpage" name="row[merchant_id]" type="text" value="{$row.merchant_id|htmlentities}">&ndash;&gt;-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label for="c-username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>-->
<!--        <div class="col-xs-12 col-sm-4">-->
<!--            <input id="c-username" data-rule="required" class="form-control" name="row[account]" type="text" value="{$row.account|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label for="c-account" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-account" data-rule="account" class="form-control" name="row[account]" type="text" value="{$row.account|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-password" class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-password" data-rule="password" class="form-control" name="row[password]" type="password" value="" placeholder="{:__('Leave password blank if dont want to change')}" autocomplete="new-password" />
        </div>
    </div>

    <div class="form-group">
        <label for="c-email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-email" data-rule="email" class="form-control" name="row[email]" disabled type="text"
                   value="{$row.email|htmlentities}">
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>-->
<!--        <div class="col-xs-12 col-sm-4">-->
<!--            <input id="c-mobile" data-rule="mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->



    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" data-rule="" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label for="c-level" class="control-label col-xs-12 col-sm-2">{:__('Level')}:</label>-->
<!--        <div class="col-xs-12 col-sm-4">-->
<!--            <input id="c-level" data-rule="required" class="form-control" name="row[level]" type="number" value="{$row.level}">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Level')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-type" class="form-control selectpicker" name="row[level]">
                {foreach name="typeList" item="vo"}
                <option value="{$vo.id}" {in name="$vo.id" value="$row.level"}selected{/in}>{$vo.title} </option>
                {/foreach}
            </select>
        </div>
    </div>



    <div class="form-group">
        <label for="c-expire_time" class="control-label col-xs-12 col-sm-2">{:__('expire_time')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-expire_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[expire_time]" type="text" value="{$row.expire_time|datetime}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[gender]', ['1'=>__('Male'), '0'=>__('Female'), '3'=>__('客服')], $row['gender'])}
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">{:__('Birthday')}:</label>-->
<!--        <div class="col-xs-12 col-sm-4">-->
<!--            <input id="c-birthday" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[birthday]" type="text" value="{$row.birthday}">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label for="c-bio" class="control-label col-xs-12 col-sm-2">{:__('Bio')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bio" data-rule="" class="form-control" name="row[bio]" type="text" value="{$row.bio|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-money" class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-money" data-rule="required" class="form-control" name="row[money]" type="number" value="{$row.money}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-score" class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-score" data-rule="required" class="form-control" name="row[score]" type="number" value="{$row.score}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-score" class="control-label col-xs-12 col-sm-2">{:__('Render')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-render" data-rule="required" class="form-control" name="row[render]" type="number" value="{$row.render}">
        </div>
    </div>




    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('is_comment')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_comment]', ['0'=>__('默认设置（所有人都可评论）'), '1'=>__('所有人可评论（不包括黑名单会员）'),'2'=>'我关注的人可评论'], $row['is_comment'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('is_give')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_give]', ['0'=>__('默认设置（所有人都可点赞）'), '1'=>__('所有人可点赞（不包括黑名单会员）'),'2'=>'我关注的人可点赞'], $row['is_give'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('is_collect')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_collect]', ['0'=>__('默认设置（所有人都可收藏）'), '1'=>__('所有人可收藏（不包括黑名单会员）'),'2'=>'我关注的人可收藏'], $row['is_give'])}
        </div>
    </div>





    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('is_speak_me')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_speak_me]', ['0'=>__('is_mail_default'), '1'=>__('is_mail_1'),'2'=>__('is_mail_2')], $row['is_speak_me'])}
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('is_comment_me')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_comment_me]', ['0'=>__('is_mail_default'), '1'=>__('is_mail_1'),'2'=>__('is_mail_2')], $row['is_comment_me'])}
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('is_private')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_private]', ['0'=>__('is_mail_default'), '1'=>__('is_mail_1'),'2'=>__('is_mail_2')], $row['is_private'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('is_mail')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_mail]', ['0'=>__('默认设置（从不接收）'), '1'=>__('从不接收'),'2'=>__('每天接收'),'3'=>__('每周接收'),'4'=>__('每月接收')], $row['is_mail'])}
        </div>
    </div>


<!--    <div class="form-group">-->
<!--        <label for="c-maxsuccessions" class="control-label col-xs-12 col-sm-2">{:__('Maxsuccessions')}:</label>-->
<!--        <div class="col-xs-12 col-sm-4">-->
<!--            <input id="c-maxsuccessions" data-rule="required" class="form-control" name="row[maxsuccessions]" type="number" value="{$row.maxsuccessions}">-->
<!--        </div>-->
<!--    </div>-->




    <div class="form-group">
        <label for="c-login_count" class="control-label col-xs-12 col-sm-2">{:__('login_count')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-login_count" data-rule="required" class="form-control" name="row[login_count]" disabled type="number" value="{$row.login_count}">
        </div>
    </div>



    <div class="form-group">
        <label for="c-logintime" class="control-label col-xs-12 col-sm-2">{:__('Logintime')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-logintime" data-rule="required" class="form-control datetimepicker" disabled data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[logintime]" type="text" value="{$row.logintime|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-loginip" class="control-label col-xs-12 col-sm-2">{:__('Loginip')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-loginip" data-rule="required" class="form-control" name="row[loginip]" disabled type="text" value="{$row.loginip}">
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label for="c-loginfailure" class="control-label col-xs-12 col-sm-2">{:__('Loginfailure')}:</label>-->
<!--        <div class="col-xs-12 col-sm-4">-->
<!--            <input id="c-loginfailure" data-rule="required" class="form-control" name="row[loginfailure]" disabled type="number" value="{$row.loginfailure}">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('审核')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_examine]', ['0'=>__('审核通过'), '1'=>__('待审核')], $row['is_examine'])}
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('上线状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[verification]', ['normal'=>__('在线'), 'hidden'=>__('离线')], $row['verification'])}
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否默认上线')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[online_status]', ['1'=>__('默认'), '2'=>__('手动调节')], $row['online_status'])}
        </div>
    </div>
    
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('paypal付款')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_paypal]', ['0'=>__('关闭'), '1'=>__('开启')], $row['is_paypal'])}
        </div>
    </div>
    
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('usdt付款')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_usdt]', ['0'=>__('关闭'), '1'=>__('开启')], $row['is_usdt'])}
        </div>
    </div>    


    <div class="form-group">
        <label for="c-joinip" class="control-label col-xs-12 col-sm-2">{:__('Joinip')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-joinip" data-rule="required" class="form-control" name="row[joinip]" disabled type="text" value="{$row.joinip}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-jointime" class="control-label col-xs-12 col-sm-2">{:__('Jointime')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-jointime" data-rule="required" class="form-control datetimepicker" disabled data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[jointime]" type="text" value="{$row.jointime|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
        </div>
    </div>




    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
